import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/screenPage'
  },
  {
    path: '/screenPage',
    name: 'ScreenPage',
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/ScreenPage.vue')
  },
  {
    path: '/sellerPage',
    name: 'SellerPage',
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/SellerPage.vue')
  },
  {
    path: '/rankPage',
    name: 'RankPage',
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/RankPage.vue')
  },
  {
    path: '/trendPage',
    name: 'TrendPage',
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/TrendPage.vue')
  },
  {
    path: '/mapPage',
    name: 'MapPage',
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/MapPage.vue')
  },
  {
    path: '/hotproductPage',
    name: 'HotproductPage',
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/HotproductPage.vue')
  },
  {
    path: '/stockPage',
    name: 'StockPage',
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/StockPage.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
